package com.tiantai.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tiantai.common.annotation.Excel;
import com.tiantai.common.core.domain.BaseEntity;

/**
 * 虫情防治措施对象 tea_prevention
 * 
 * @author ruoyi
 * @date 2025-03-21
 */
public class TeaPrevention extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 防治日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "防治日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date measureDate;

    /** 防治类型:prevention(预防期)/outbreak(高发期)/critical(关键期) */
    @Excel(name = "防治类型:prevention(预防期)/outbreak(高发期)/critical(关键期)")
    private String type;

    /** 类型显示名称(如:高发期) */
    @Excel(name = "类型显示名称(如:高发期)")
    private String typeName;

    /** 防治标题(如:茶园病虫害防治) */
    @Excel(name = "防治标题(如:茶园病虫害防治)")
    private String title;

    /** 防治内容 */
    @Excel(name = "防治内容")
    private String content;

    /** 状态:0-禁用,1-启用 */
    @Excel(name = "状态:0-禁用,1-启用")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMeasureDate(Date measureDate) 
    {
        this.measureDate = measureDate;
    }

    public Date getMeasureDate() 
    {
        return measureDate;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("measureDate", getMeasureDate())
            .append("type", getType())
            .append("typeName", getTypeName())
            .append("title", getTitle())
            .append("content", getContent())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
